<!DOCTYPE html>
<html lang="en" xmlns:th="http:www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
   <!-- 欢迎回来《 <p th:text="${user.username}"></p> 》-->
    <br>
        this is index page,and you?
    <br>
    <br>
        <a href="/addUser">添加用户</a>
    <br>

    <a href="/logout">退出登录</a>

    <shiro:authenticated>
        用户认证成功
    </shiro:authenticated>

    <shiro:hasPermission name="useer">
        用户由useer权限
    </shiro:hasPermission>

    <shiro:hasAllRoles name="seller">
        用户由seller角色
    </shiro:hasAllRoles>

   <!-- <shiro:principal property="username">
    </shiro:principal>-->
</body>
</html>